package com.rightsidetech.mall.mapper;

import com.rightsidetech.mall.dto.request.AuditRecordPageReq;
import com.rightsidetech.mall.dto.response.CommodityVerifyRecordResp;
import com.rightsidetech.mall.entity.MallCommodityAuditRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MallCommodityAuditRecordMapper {
    int deleteByPrimaryKey(Long id);

    int insert(MallCommodityAuditRecord record);

    int insertSelective(MallCommodityAuditRecord record);

    MallCommodityAuditRecord selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(MallCommodityAuditRecord record);

    int updateByPrimaryKey(MallCommodityAuditRecord record);

    List<CommodityVerifyRecordResp> selectPage(AuditRecordPageReq req);
    Integer selectPage_COUNT(AuditRecordPageReq req);

    String selectAuditContentByCommodityId(@Param("commodityId") Long commodityId,@Param("commodityMarketName") String commodityMarketName);
}